package cn.medemede.springbootdemo1.repository;

import cn.medemede.springbootdemo1.domain.Girl;
import org.springframework.data.jpa.repository.JpaRepository;


import java.util.List;

public interface GirlRepository extends JpaRepository<Girl, Integer> {

    //方法名不能乱写！！！一定要按照这个规则写，idea会有自动提示
    List<Girl> findByAge(Integer age);

}
